package at.fhooe.mcm.logic.sensors.events;

import at.fhooe.mcm.logic.event.Event;
import at.fhooe.mcm.logic.event.EventType;

public class SensorUpdatedEvent extends Event
{
	private static final long		serialVersionUID	= -8038224540339967047L;
	public static final EventType	TYPE				= new EventType("EntityUpdated");
	
	private String					m_sensorID;
	private String					m_sensorType;
	private String					m_sensorName;
	private double					m_value;

	public SensorUpdatedEvent(String _id, String _type, String _name, double _value)
	{
		m_sensorID = _id;
		m_sensorType = _type;
		m_value = _value;
		m_sensorName = _name;
	}

	@Override
	public EventType getType()
	{
		return TYPE;
	}

	public String getSensorID()
	{
		return m_sensorID;
	}
	
	public String getSensorName()
	{
		return m_sensorName;
	}

	public String getSensorType()
	{
		return m_sensorType;
	}

	public double getValue()
	{
		return m_value;
	}

}
